const js = {
	data() {
		return {
			rules: {
				HeaderUrl: [{
					required: true,
					trigger: 'blur',
					validator: (rule, value, callback) => {
						if (value === null || value === "") {
							var msg = this.stringFormat(this.comLan.Require1, this.keyLan["HeaderUrl"]);
							callback(new Error(msg));
						} else {
							callback();
						}
					}
				}],
				Name: [{
					required: true,
					trigger: 'blur',
					validator: (rule, value, callback) => {
						if (value === null || value === "") {
							var msg = this.stringFormat(this.comLan.Require1, this.keyLan["Name"]);
							callback(new Error(msg));
						} else {
							callback();
						}
					}
				}],
			}
		};
	},
	computed: {
		EnumStatus(){
			return this.emptyArray(window["EnumStatus"]);
		},
		IsDelIsYes(){
			return [{
				Value: false,
				Label: '否',
				Color: 'red'
			}, {
				Value: true,
				Label: '是',
				Color: 'green'
			}];
		},
		EnumSysStoreType(){
			return this.emptyArray(window["EnumSysStoreType"]);
		},
	},
	methods: {}
}

export default js;
